package com.ruoyi.rsikManage.service.Impl;

import com.ruoyi.rsikManage.domain.TAlgoScenarioMonitor;
import com.ruoyi.rsikManage.service.ITAlgoScenarioMonitorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.rsikManage.mapper.TAlgoScenarioMonitorMapper;

import java.util.List;

/**
 * 算法场景监控Service业务层处理
 *
 * @author ruoyi
 * @date 2024-05-07
 */
@Service
public class TAlgoScenarioMonitorServiceImpl implements ITAlgoScenarioMonitorService
{
    @Autowired
    private TAlgoScenarioMonitorMapper tAlgoScenarioMonitorMapper;

    /**
     * 查询算法场景监控
     *
     * @param id 算法场景监控主键
     * @return 算法场景监控
     */
    @Override
    public TAlgoScenarioMonitor selectTAlgoScenarioMonitorById(Long id)
    {
        return tAlgoScenarioMonitorMapper.selectTAlgoScenarioMonitorById(id);
    }

    /**
     * 查询算法场景监控列表
     *
     * @param tAlgoScenarioMonitor 算法场景监控
     * @return 算法场景监控
     */
    @Override
    public List<TAlgoScenarioMonitor> selectTAlgoScenarioMonitorList(TAlgoScenarioMonitor tAlgoScenarioMonitor)
    {
        return tAlgoScenarioMonitorMapper.selectTAlgoScenarioMonitorList(tAlgoScenarioMonitor);
    }

    /**
     * 新增算法场景监控
     *
     * @param tAlgoScenarioMonitor 算法场景监控
     * @return 结果
     */
    @Override
    public int insertTAlgoScenarioMonitor(TAlgoScenarioMonitor tAlgoScenarioMonitor)
    {
        return tAlgoScenarioMonitorMapper.insertTAlgoScenarioMonitor(tAlgoScenarioMonitor);
    }

    /**
     * 修改算法场景监控
     *
     * @param tAlgoScenarioMonitor 算法场景监控
     * @return 结果
     */
    @Override
    public int updateTAlgoScenarioMonitor(TAlgoScenarioMonitor tAlgoScenarioMonitor)
    {
        return tAlgoScenarioMonitorMapper.updateTAlgoScenarioMonitor(tAlgoScenarioMonitor);
    }

    /**
     * 批量删除算法场景监控
     *
     * @param ids 需要删除的算法场景监控主键
     * @return 结果
     */
    @Override
    public int deleteTAlgoScenarioMonitorByIds(Long[] ids)
    {
        return tAlgoScenarioMonitorMapper.deleteTAlgoScenarioMonitorByIds(ids);
    }

    /**
     * 删除算法场景监控信息
     *
     * @param id 算法场景监控主键
     * @return 结果
     */
    @Override
    public int deleteTAlgoScenarioMonitorById(Long id)
    {
        return tAlgoScenarioMonitorMapper.deleteTAlgoScenarioMonitorById(id);
    }
}
